﻿using System;
using System.ComponentModel;
using Rimifier.Support.ResourceManager;

namespace Rimifier.Support.ZoneManager
{
  public class ZoneSquare
  {
    
    public ZoneSquare(Zone parent, string positon)
    {
      Parent = parent;
      Positon = positon;
    }
    
    [Browsable(false)]
    public Zone Parent { get; private set; }

    public String Positon { get; private set; }

    public Resource SittingResource { get; set; }
    
    public Int32 StackCount {
      get {
        if (SittingResource != null)
        {
          return SittingResource.StackCount;
        }
        return 0;
      }
      set
      {
        if (SittingResource != null)
        {
          SittingResource.StackCount = value;
        }
      }
    }

  }
}